<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/5/31
  Time: 12:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/common.jsp"%>
<html>
<head>
    <title>Title</title>
    <script>
        var setting = {

            check: {
                enable: true,
                autoCheckTrigger: true
            },
            async: {
                enable: true,
                dataType: "json",
                url: "<%=path%>/menu/ztreeInfo",
                autoParam: ["id", "name"]

            },
        };


        $(document).ready(function () {
            $.fn.zTree.init($("#treeDemo"), setting);
        });
    </script>
</head>
<body>
<form id="add_form">
    名字<input type="text" name="rname">
    <div class="form-group">
        <label for="menu" class="col-sm-2 control-label">权限</label>
        <div class="col-sm-5">
            <div class="zTreeDemoBackground left" id="menu">


                <ul id="treeDemo" class="ztree"></ul>
            </div>
        </div>
    </div>
</form>

</body>
</html>